<?php 
 include_once '../../conn/mysql.php';
 session_start();
$res=sql("s", "home", "*", "");
$info=firstrow($res);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../templates/met/images/css/reset.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../templates/met/images/css/metinfo.css" />
<script type="text/javascript"src="../include/metvar.js"></script>
<script type="text/javascript" src="../include/metinfo.js"></script>
<script type="text/javascript" src="../../public/js/metinfo-min.js"></script>
<script type="text/javascript" src="../templates/met/images/js/iframes.js"></script>
<script type="text/javascript" src="../templates/met/images/js/cookie.js"></script>
<style type="text/css">
body{
	font-size: ; 
	font-family:;
	text-align:center;
}
</style>
<script type="text/javascript">
//ajax执行时间
var time=200;
var lang = 'cn';
var metimgurl='../templates/met/images/';
</script>
<script type="text/javascript">
	$(document).keypress(function(e){  
	var type = e.keyCode||e.which||e.charCode;
		if(type==27){ 		
			parent.sitemp('set/sitemap.php?lang=cn&admintp=&langset=cn');  
		}				
	});
</script>

<title>网站底部信息设置</title>
</head>
<body>


<div id="languge">
	<ul id="langlist">

        <li class="onlang"><a class="lang" href="?lang=cn" onclick="return duolang('cn');" title="简体中文">简体中文</a></li>

   

        <div class="clear"></div>
    </ul>
</div>

<script type="text/javascript">
$(document).ready(function()
	{
		$("form :input").change(function ()
		{
			$('form').data('changed',true);
		});
	}
	);
function duolang(lang){
	if($('form').data('changed')){
		if(!confirm(user_msg['js10']))return false;
		else{
			langCookie(lang); 
		}
	}else{
		langCookie(lang); 
	}
}
function langCookie(lang){
	parent.$.cookie('langget',null);
    parent.$.cookie('langget', 3);
	parent.location.href='../index.php?lang='+lang;
}
</script>

        <form method="POST" name="myform" action="../control.php?oper=foot" target="_self">
		<input name="action" type="hidden" value="modify" />
		<input name="langp" type="hidden" value="en" />
		<input name="langname" type="hidden" value="English" />
<table cellpadding="2" cellspacing="1" class="table">
<tr> 
            <td class="text">标题</td>
            <td class="input"><input  class="text" name="title" type="text"  value="<?=gv($info,"title");?>" /></td>
          </tr> 
          <tr> 
            <td class="text">QQ</td>
            <td class="input"><input  class="text" name="qq" type="text"  value="<?=gv($info,"qq");?>" /></td>
          </tr> 
          <tr> 
            <td class="text">QQ群</td>
            <td class="input"><input  class="text" name="qun" type="text"  value="<?=gv($info,"qun");?>" /></td>
          </tr> 
          <tr> 
            <td class="text">电话</td>
            <td class="input"><input  class="text" name="tel" type="text"  value="<?=gv($info,"tel");?>" /></td>
          </tr> 
          <tr> 
            <td class="text">是否开启注册</td>
            <td class="input">
            
            <label>
      <input type="radio" name="zhuce" value="1" <?php if(gv($info,"zhuce")==1){ echo 'checked="checked"';};?> />
      开启</label>

    <label>
      <input name="zhuce" type="radio"  value="0" <?php if(gv($info,"zhuce")==0){ echo 'checked="checked"';};?> />
      关闭</label>
            
            </td>
          </tr>
		  <tr> 
            <td class="text">代理咨询</td>
            <td class="input"><table  border="0" style="width:300px" cellspacing="0" cellpadding="0">
              <tr>
                <th width="125" scope="col">QQ昵称</th>
                <th width="125" scope="col">QQ号</th>
              </tr>
              <tr>
                <td align="center"><input style="width:100%" name="nc1"  class="text" type="text"  value="<?=gv($info,"nc1");?>" /></td>
                <td><input style="width:100%" name="qq1" type="text"  class="text" value="<?=gv($info,"qq1");?>" /></td>
              </tr>
              <tr>
                <td align="center"><input style="width:100%"  class="text" name="nc2" type="text"  value="<?=gv($info,"nc2");?>" /></td>
                <td><input style="width:100%" name="qq2" type="text"  class="text" value="<?=gv($info,"qq2");?>" /></td>
              </tr>
               <tr>
                <td align="center"><input style="width:100%" name="nc3"  class="text" type="text"  value="<?=gv($info,"nc3");?>" /></td>
                <td><input style="width:100%" name="qq3" type="text"  class="text" value="<?=gv($info,"qq3");?>" /></td>
              </tr>
              <tr> 
           
            </table></td>
          </tr> 
		 <td class="text">底部信息<br></td>
            <td class="input upload"><textarea name="copyright" cols="60" class="textarea gen" rows="5" ><?=gv($info,"copyright");?></textarea></td></tr>
			

	      <tr> 
            <td class="text"></td>
	        <td class="submit">
				<input type="submit" name="Submit" value="保存" class="submit"  />
				<input type="reset" name="Submit" value="重置" class="reset" /></td>
          </tr>
	</table>
	</form>
<div class="footer"> </div>
</body>
</html>
